package exercise;

import framework.Factory;
import framework.Product;

public class Main {

    public static void main(String[] args) {
        Factory factory = new IDCardFactory();

        for(int i = 0; i < 5; i++){
            Product idCard = factory.create(i+"");
            idCard.use();
        }

        System.out.println(((IDCardFactory) factory).getDatabase());
    }
}
